﻿using MQ.Core.Common;
using MQ.Core.Entity;
using System;
using System.Collections.Generic;
using System.Text;

namespace MQ.Core.IRepository
{
    public interface IDictionaryRepository
    {
        #region 查询数据
        bool ExistByName(long parentId, string name);
        bool ExistByValue(long parentId, string value);
        IEnumerable<DictionaryEntity> GetList(string query);
        IEnumerable<DictionaryEntity> GetPageList(Pagination pagination, string query);
        #endregion

        #region 提交数据
        int Add(DictionaryEntity entity);
        int Update(DictionaryEntity entity);
        int Delete(long id);
        int Delete(string ids);
        int Delete(DictionaryEntity entity);
        #endregion
    }
}
